home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / RLaB 1.15c / help / COMPLEX < prev    next >
Encoding:
Text File  |  1994-02-21  |  888 b   |  30 lines  |  [TEXT/RLAB]

  1. COMPLEX:
  2.  
  3.     RLaB supports COMPLEX data types. The "type" of a variable is
  4.     revealed by typing:
  5.  
  6.         var.type
  7.  
  8.         or
  9.  
  10.         show(var)
  11.  
  12.     In the 1st instance the return value is a string, in the 2nd
  13.     instance, the return value is a string matrix.
  14.  
  15.     Complex variables can be used via the MATLAB syntax:
  16.  
  17.     i = sqrt(-1)
  18.  
  19.     z = 1 + 2*i
  20.  
  21.     z = a + b*i
  22.  
  23.     or with RLaB's complex constant feature:
  24.  
  25.     z = 1 + 2i
  26.  
  27.     z = 1 + 2j    // equivalent to the previous statement
  28.  
  29.     The complex constants `i' and `j' do not interfere with
  30.     ordinary v